package com.example.mq.mqserver.core;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2024/02/14/11:03
 * @Description:  使用枚举来列举交换机的三种类型
 */
public enum ExchangeType {
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);
    private final int type;
    private ExchangeType(int type){
        this.type = type;
    }
    public int getType() {
        return type;
    }
}
